SET(TERMINAL_SOURCES
	${CMAKE_CURRENT_SOURCE_DIR}/tsm/shl-pty.c
	${CMAKE_CURRENT_SOURCE_DIR}/tsm/shl-ring.c
	${CMAKE_CURRENT_SOURCE_DIR}/tsm/tsm_vte.c
	${CMAKE_CURRENT_SOURCE_DIR}/tsm/tsm_vte_charsets.c
	${CMAKE_CURRENT_SOURCE_DIR}/arcterm.c
	${CMAKE_CURRENT_SOURCE_DIR}/cli.c
	${CMAKE_CURRENT_SOURCE_DIR}/cli_parse.c
	${CMAKE_CURRENT_SOURCE_DIR}/cli_builtin.c
	PARENT_SCOPE
)

if (FSRV_TERMINAL_NOEXEC)
	SET(TERMINAL_DEFS
	FSRV_TERMINAL_NOEXEC
	PARENT_SCOPE
	)
endif()

SET(TERMINAL_LIBS
	util
	arcan_tui
	PARENT_SCOPE
)

set(TERMINAL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/tsm
	PARENT_SCOPE
)
